<?php
namespace haibao\cms\model\data;

class FeatureParam extends Base{
	const CONTENT_TYPE_TEXT = 1;
	const CONTENT_TYPE_IMG = 2;
	const CONTENT_TYPE_EDITOR = 3;
	
	const PARAM_TYPE_HTML = 1;
	const PARAM_TYPE_JS = 2;
	const PARAM_TYPE_CSS = 3;
	
	public $FeatureId;
	public $Code = '';
	public $Name = '';
	public $Value = '';
	public $ContentType = 0;
	public $ParamType = 0;
	public $CreateTime = '';
	public $CreateBy;
	
	public function __construct(){
		parent::__construct();
		$this->stringField('Code','Code',true);
		$this->intField('FeatureId', 'FeatureId',true);
		$this->stringfield('Name', 'Name',true);
		$this->stringField('Value', 'Value',true);
		$this->intField('ContentType', 'ContentType',true);
		$this->intField('ParamType', 'ParamType',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->intField('CreateBy', 'CreateBy',true);
		
		$this->setTableName('FeatureParam');
	}
	
}